<div class="pageContent">
        <if condition="isset($menu)">
            <form method="post" action="__URL__/update" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <else />
            <form method="post" action="__URL__/insert" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        </if>
        <div class="pageFormContent" layoutH="56">
            <div style="width:100%;float:left;margin-top:10px;">
                <label style="font-size:12px;margin-left:10px;">菜单名称：</label>
                <input name="menu_title" type="text" size="30" value="{$menu.menu_title}" class="required"/>
            </div>
            <div style="width:100%;float:left;margin-top:10px;">
                <label style="font-size:12px;margin-left:10px;">上级菜单：</label>
                <select name="parent_id">
                    <option value="0">无</option>
                    <volist name="parentCates" id="menuinfo">
                        <option value="{$key}" <?php if ($key == $menu['parent_id']){ echo"selected='true'"; } else {echo "";};?>>
                            {$menuinfo}
                        </option>
                    </volist>
                </select>
                <span class="info">&nbsp;&nbsp;选择当前菜单的上级菜单，如需添加一级菜单，请选择“无”。</span>
            </div>
            <div style="width:100%;float:left;margin-top:10px;">
                <label style="font-size:12px;margin-left:10px;">模块名称：</label>
                <input name="controller" type="text" size="30" value="{$menu.controller}" class=""/>
            </div>
            <div style="width:100%;float:left;margin-top:10px;">
                <label style="font-size:12px;margin-left:10px;">功能名称：</label>
                <input name="action" type="text" size="30" value="{$menu.action}" class=""/>
            </div>
            <div style="width:100%;float:left;margin-top:10px;">
                <label style="font-size:12px;margin-left:10px;">菜单说明：</label>
                <input name="explain" type="text" size="50" value="{$menu.explain}" class=""/>
                <span class="info">&nbsp;&nbsp;这里可以对菜单进行简短的说明。</span>
            </div>
            <div style="width:100%;float:left;margin-top:10px;">
                <label style="font-size:12px;margin-left:10px;">排序比重：</label>
                <input name="sortNum" type="text" size="50" value="{$menu.sortNum}" class=""/>
                <span class="info">&nbsp;&nbsp;数值越小，排名越前。</span>
            </div>
            <input type="hidden" name="menu_id" value="{$menu.menu_id}" />
    </div>
    <div class="formBar">        
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                       <if condition="in_array('update', $privilegelist)">
                            <button type="submit">保存</button>
                       </if>
                    </div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <if condition="in_array('update', $privilegelist)">
                            <button type="button" class="close">取消</button>
                        </if>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
